package com.adong.test;

import com.adong.config.TxConfig;
import com.adong.tx.TxService;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;

/**
 * @author adong
 */
public class TxDemo {
    @Test
    public void demo(){
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(TxConfig.class);
        TxService service = applicationContext.getBean(TxService.class);
        service.insert();
    }
}
